package com.jmp.autocofiguration;

import one.stand.util.RedisUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author cjr
 */
@Configuration
@EnableConfigurationProperties({
        JmpProperties.class,
        WxConfigProperties.class
})
public class InitAutoConfiguration {
    @Autowired
    private RedisUtil redisUtil;
    @Autowired
    private JmpProperties jmpProperties;

    @Bean
    public InitApplicationRunner applicationInitRunner() {
        return new InitApplicationRunner(redisUtil, jmpProperties);
    }
}
